package appnode;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;
import java.util.List;
import java.util.ArrayList;


@PersistenceCapable
public class Link {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

@Persistent
private String name1;

@Persistent
private String name2;

@Persistent
private String protocol;

@Persistent
private String freq;

@Persistent
private String power;

@Persistent
private Date date;

public Link(String name1, String name2, String protocol, String freq, String power, Date date) {
	this.name1 = name1;
	this.name2 = name2;
	this.protocol = protocol;
	this.freq = freq;
	this.power = power;
	this.date = date;
}

public Key getKey() {
	return key;
}

public String getName1() {
	return name1;
}

public String getName2() {
	return name2;
}

public String getProtocol() {
	return protocol;
}

public String getFreq() {
	return freq;
}

public String getPower() {
	return power;
}

public Date getDate() {
	return date;
}

public String getKeyStr() {
	return KeyFactory.keyToString(key);
}

public void setName1(String Name1) {
	this.name1 = name1;
}

public void setName2(String Name2) {
	this.name2 = name2;
}

public void setProtocol(String protocol) {
	this.protocol = protocol;
}

public void setFreq(String freq) {
	this.freq = freq;
}

public void setPower(String power){
	this.power = power;
}

public void setDate(Date date){
	this.date = date;
}

}